package com.atgouwu.mall.order.feign;

import com.atgouwu.mall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 远程调用cart购物车服务
 */
@FeignClient("cart")
public interface CartFeignService {

    /**
     * 查询当前用户购物车选中的商品项
     * @return
     */
    @GetMapping(value = "/cart/data/currentUserCartItems")
    List<OrderItemVo> getCurrentCartItems(@RequestParam("token") String token);

}
